﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public enum Unit{General = 0,Knight = 1, Beserker = 2, Ranger = 3, Priest = 4};
public struct Tile
{
    public bool node;
    public int highground;
    public int moveamount;
    public int defenseamount;
    public int terraintype;
    public Point position;
    public string FileType;
    public Unit type;
    public bool Startarea;
    public bool flag;
    public Point tile;
    public Point selectrecttile;
    public bool selectpaint;
    public string TriggerEvent;
    public bool painted;
    public string ExtraEvent;
    public bool logic;
    public bool collision;
    public int m_nTileID;
}

namespace Tile_Editor
{
    class Map
    {
        public Tile[,] Tiles  = new Tile[25,25];
        public Point[,] battlemap;

        public Point[,] Battlemap
        {
            get { return battlemap; }
            set { battlemap = value; }
        }
        public Size mapSize;

        public Size MapSize
        {
            get { return mapSize; }
            set { mapSize = value; }
        }
        public Tile tiletype;
        
        public Tile Tiletype
        {
            get { return tiletype; }
            set { tiletype = value; }
        }
        public Unit unitType;

        public Unit UnitType
        {
            get { return unitType; }
            set { unitType = value; }
        }
        public Map()
        {
            Battlemap = new Point[25, 25];
            mapSize = new Size(25, 25);
        }
    }
}
